dojo.addOnLoad(

function () {
		var map = new google.maps.Map(document.getElementById('mappa'), {
			zoom: 13,
			center: new google.maps.LatLng(45.39, 11.87),
			mapTypeId: google.maps.MapTypeId.ROADMAP
		});
        var image = new google.maps.MarkerImage('../../styles/images/FragolinaMark.png', new google.maps.Size(26, 31), new google.maps.Point(0, 0),new  google.maps.Point(0, 31))

		var address1 = dojo.query("span[id$='LblDove']")[0].innerHTML;
		var gc = new google.maps.Geocoder();
		gc.geocode({'address': address1}, function (res1, status) {
		if (status == google.maps.GeocoderStatus.OK) {
			map.setCenter(new google.maps.LatLng(res1[0].geometry.location.lat(), res1[0].geometry.location.lng()))
			var mark = new google.maps.Marker({
              position: res1[0].geometry.location,
              map: map,
              icon: image
            });
			var link = dojo.query("a[id$='linkMappa']")[0].href= 'http://maps.google.it/maps?q=' + res1[0].formatted_address
			
		}
	})

})
   
